package validation;
import net.sf.oval.configuration.annotation.Constraint;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.PARAMETER, ElementType.METHOD})
@Constraint(checkWith = Numbercheck.class)
public @interface Number {
	
		  /**
		  * message to be used for the ConstraintsViolatedException 
		  *
		  * @see ConstraintsViolatedException
		  */
		  String message() default "doit contenir que des chiffres";
		}


